package pl.edu.agh.student.nn.core.bp;

import pl.edu.agh.student.nn.core.InputOutputNeuron;

/**
 * Created by IntelliJ IDEA.
 * User: Krzysiek
 * Date: 17.01.12
 * Time: 14:01
 * To change this template use File | Settings | File Templates.
 */
public class BpNeuron extends InputOutputNeuron {
    protected double oldBias = 1;
    protected double error;

    public void setBias(double bias) {
        this.oldBias = this.bias;
        this.bias = bias;
    }

    public double getError() {
        return error;
    }

    public void setError(double error) {
        this.error = error;
    }

    public double getOldBias() {
        return oldBias;
    }

}
